package com.ruoyi.web.controller.yiqikan;

import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 17kan插件接口
 *
 * @author ruoyi
 */
@RestController
public class ChromeController {
    @PostMapping("/app/showMsg")
    public AjaxResult showMsg(@RequestBody LoginBody loginBody) {
        System.out.println(loginBody.getUsername());
        AjaxResult ajax = AjaxResult.success();
        return ajax;
    }
    @PostMapping("/app/createRoom")
    public AjaxResult createRoom() {
        AjaxResult ajax = AjaxResult.success();
        ajax.put("ipAddress","ws://192.168.1.9:"+9000);
        return ajax;
    }
}
